<template>
	<view class="content">
		<!-- 采购报表 -->
		<purchase ref="purchase"></purchase>
	</view>
</template>

<script>
// import purchase from "@/components/report/purchase/Purchase.vue";
import purchase from "@/pages/report/purchaseModule/index.vue";
import staticConst from '@/js/const/StaticConst.js';

export default {
	components: {
		purchase,
	},
	data() {
		return {
			curPage: staticConst.REP_CG,
			curIndex: 1,  //1,
			actType: 0,// 0:新增产品 1：编辑产品
			isNotData: false, // 没有数据
			isClickUpDownBtn: false,
			mdGd: staticConst.MD_GD,//模块
			tab: -1
		}
	},
	onLoad(opt) {
		if (opt.tab)
			this.tab = opt.tab;
		else
			this.tab = -1;
	},

	onShow() {
		this.addEvent();
	},

	onHide() {
		this.removeEvent();
	},

	onUnload() {
		this.removeEvent();
	},

	onReady() {
		this.$refs.purchase.initData(this.tab);
	},

	methods: {
		/****显示上传产品列表窗口****/
		showUploadGdsWin() {
			// this.$refs.uploadGoodsFile.show("show");
		},

		/*****显示上传下载菜单****/
		upDownClick() {
			this.isClickUpDownBtn = true;
			this.$refs.upAndDownLoadMenu.show();
		},

		removeEvent() {
		},

		addEvent() {
		},
	},
}
</script>
<style lang="scss">
.content {
	display: flex;
	justify-content: flex-start;
	min-width: 820px;
	height: 100%;
	position: relative;
}
</style>